﻿
using System.Web;
using System.Web.Optimization;

namespace UtilitiesMvcUI
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            ////clear all ignore list (add *.min to debug if no other files)
            //bundles.IgnoreList.Clear();
            //bundles.IgnoreList.Ignore("*.intellisense.js");
            //bundles.IgnoreList.Ignore("*-vsdoc.js");
            //bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);

            //jquery
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));
            //jquery ui
            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui-{version}.js"));
            //kendo ui
            bundles.Add(new ScriptBundle("~/bundles/KendoUi").Include(
                        "~/Scripts/kendo/2012.2.913/kendo.all.min.js",
                        "~/Scripts/kendo/2012.2.913/kendo.aspnetmvc.min.js"));
            //modernizer
            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));
            //rtlcss
            bundles.Add(new StyleBundle("~/Content/rtlcss").Include(
                "~/Content/normalize.css",
                "~/Content/Layout.rtl.css",
                "~/Content/Site.css"));
            //ltrcss
            bundles.Add(new StyleBundle("~/Content/ltrcss").Include(
                "~/Content/normalize.css",
                "~/Content/Layout.ltr.css",
                "~/Content/Site.css"));
            //kendo css
            bundles.Add(new StyleBundle("~/Content/KendoUi").Include(
                "~/Content/kendo/2013.1.319/kendo.common.min.css",
                "~/Content/kendo/2013.1.319/kendo.dataviz.min.css",
                "~/Content/kendo/2013.1.319/kendo.default.min.css",
                "~/Content/kendo/2013.1.319/kendo.rtl.min.css"));
            //jquery ui Css
            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));
        }
    }
}